package com.jz.community.moduleshopping.orderList.view;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.widget.ImageView;
import android.widget.TextView;

import com.jz.community.moduleshopping.R;


public class ReasonDialog extends Dialog {

    TextView hintTitle;
    TextView hintReason;
    ImageView ivHintClose;
    private String reason;

    public ReasonDialog(@NonNull Context context) {
        super(context, R.style.Reason_MyDialog);
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_refuse_hint);
        hintTitle = findViewById(R.id.hint_title);
        hintReason = findViewById(R.id.hint_reason);
        ivHintClose = findViewById(R.id.iv_hint_close);
        ivHintClose.setOnClickListener(view -> dismiss());
        hintReason.setText(reason);
    }


}
